home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000079_news@columbia.edu _Tue Oct 17 13:12:59 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id NAA26549
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 17 Oct 2000 13:12:58 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA10313
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 17 Oct 2000 13:09:38 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA20633
  10.     for kermit.misc@watsun.cc.columbia.edu; Tue, 17 Oct 2000 12:52:43 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: No Carrier
  14. Date: 17 Oct 2000 16:52:42 GMT
  15. Organization: Columbia University
  16. Message-ID: <8si04q$k4m$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <zb%G5.34359$Ly1.489095@news5.giganews.com>,
  20. Steve <steve@baus-systems.com> wrote:
  21. : In our DOS app, we call Server from the command line and Kermit does
  22. : terminate when it receives the Finish.  All we would like right now is for
  23. : the host in Server mode to not drop the phone line when it receives the
  24. : Finish.  I would have thought that there was an AT command or Kermit setting
  25. : that would do this.
  26. The Kermit server does not drop the phone line when it gets a FINISH.  The
  27. reason the phone line drops is that the next command after SERVER in your
  28. script is EXIT (implied or explicit -- e.g. because the script was invoked
  29. from the command line, so Kermit exits when the script is finished).  Replace
  30. that with something along the lines that Jeff suggested and you'll be happy.
  31.  
  32. Jeff suggested:
  33.  
  34. : >   SET CARRIER-WATCH ON
  35. : >   SET MODEM TYPE ...
  36. : >   SET PORT ...
  37. : >   SET FLOW ...
  38. : >   WHILE TRUE  {
  39. : >     ANSWER 0
  40. : >     IF SUCCESS {
  41. : >       SERVER      ; This one is terminated by the FINISH
  42. : >       SERVER      ; This one is terminated by the connection loss
  43. : >     }
  44. : >     HANGUP
  45. : >   }
  46.  
  47. - Frank
  48.  
  49. Return-Path: <news@columbia.edu>
  50. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  51.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id NAA28958
  52.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 19 Oct 2000 13:39:43 -0400 (EDT)
  53. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  54.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA15101
  55.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 19 Oct 2000 13:39:42 -0400 (EDT)
  56. Received: (from news@localhost)
  57.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id NAA13063
  58.     for kermit.misc@watsun.cc.columbia.edu; Thu, 19 Oct 2000 13:38:16 -0400 (EDT)
  59. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  60. From: "Steve" <steve@baus-systems.com>
  61. Subject: Re: No Carrier
  62. Message-ID: <9jGH5.66100$bI6.2391998@news1.giganews.com>
  63. Organization: Giganews.Com - Premium News Outsourcing
  64. Date: Thu, 19 Oct 2000 17:37:09 GMT
  65. To: kermit.misc@columbia.edu
  66.  
  67. A little clarification.  In our DOS server program, we do have server in a
  68. loop and we call server from a command line.  Here is streamlined psuedo
  69. code of the host app:
  70.  
  71. Do While True
  72.  
  73. 'rem Loop to get client ID file
  74. Do while True
  75.  
  76.     'rem Wait for ClientID file
  77.     Kermit Server
  78.  
  79.     If File(ClientID)
  80.         Exit Do
  81.     End IF
  82.  
  83. EndDo
  84.  
  85. ChangeToClientSpecificDirectory(ClientID#)
  86. CompressFilesGoingToClient(ClientID#)
  87.  
  88. Kermit Send ClientUpdateFile
  89.  
  90. 'rem Server mode to receive client data files
  91. Kermit Server
  92. ProcessClientDataFiles(ClientID#)
  93.  
  94. End Do
  95.  
  96. We have a Windows version of this written in VB working fine with non modem
  97. serial cable file transfers.  The tricky part was having the VB app wait
  98. until the Kermit server has terminated at which point we check for files,
  99. process files or whatever needs to happen.  The problem is if we are going
  100. over a modem, the phone line is dropped when we exit K95.  If we do not exit
  101. K95, we end up with a window with a K95 prompt.  If there was a way for me
  102. to issue commands to that K95 prompt so it could send files or go back in
  103. server mode that may resolve this until we can re think the whole process.
  104.  
  105. Steve
  106.  
  107. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote in message
  108. news:8si04s$k4q$1@newsmaster.cc.columbia.edu...
  109. > In article <zb%G5.34359$Ly1.489095@news5.giganews.com>,
  110. > Steve <steve@baus-systems.com> wrote:
  111. > : In our DOS app, we call Server from the command line and Kermit does
  112. > : terminate when it receives the Finish.  All we would like right now is
  113. for
  114. > : the host in Server mode to not drop the phone line when it receives the
  115. > : Finish.  I would have thought that there was an AT command or Kermit
  116. setting
  117. > : that would do this.
  118. > :
  119. > : Steve
  120. > :
  121. >
  122. > The connection will not be dropped when the FINISH is received if:
  123. >
  124. >  . K95 does not terminate
  125. >
  126. >  . HANGUP is not issued
  127. >
  128. >  . CLOSE CONNECTION is not issued
  129. >
  130. > Your original script was
  131. >
  132. >   ....
  133. >   SERVER
  134. >   EXIT
  135. >
  136. > Hence, when the SERVER command completes due to the receipt of the FINISH
  137. > command from the client, the EXIT command is executed which causes K95
  138. > to terminate, the modem to be hungup, and the communications device to
  139. > be closed.   That is why I have suggested using the WHILE construct to
  140. > ANSWER multiple calls if that is what you want; or to use multiple SERVER
  141. > commands.
  142. >
  143. > I don't see how your clients are working with MS-DOS Kermit as the SERVER
  144. > if the clients always issue a FINISH upon establishing a connection; and
  145. > the MS-DOS Kermit script only contains a single SERVER command which is
  146. > not in a loop of some sort.
  147. >
  148. >
  149. >                   Jeffrey Altman * Sr.Software Designer
  150. >                  The Kermit Project * Columbia University
  151. >                612 West 115th St * New York, NY * 10025 * USA
  152. >      http://www.kermit-project.org/ * kermit-support@kermit-project.org
  153.  
  154.